import './App.css';
import StyledComponentsRegistry from "./utils/AntdRegistry";
import {ConfigProvider} from "antd";
import zhCN from 'antd/locale/zh_CN';
import theme from "./theme/theme";
import { HashRouter, Route, Routes} from "react-router-dom";
import DashboardLayout from "./pages/dashboard/layout";
import DashboardTabsPage from "./pages/dashboard/[...path]/page";
import LogInPage from "./pages/logIn/page";

function App() {
    return (
        <StyledComponentsRegistry>
            <ConfigProvider theme={theme} locale={zhCN}>
                <HashRouter>
                    <Routes>
                        <Route path={"/*"}
                               element={<DashboardLayout>
                                   <DashboardTabsPage/>
                               </DashboardLayout>}>
                        </Route>
                        <Route path={"/logIn"} element={<LogInPage/>}></Route>
                    </Routes>
                </HashRouter>
            </ConfigProvider>
        </StyledComponentsRegistry>
    );
}

export default App;
